home *** CD-ROM | disk | FTP | other *** search
/ kermit.columbia.edu / kermit.columbia.edu.tar / kermit.columbia.edu / newsgroups / misc.20021006-20030409 / 000037_fdc@columbia.edu_Mon Oct 28 09:57:23 EST 2002.msg < prev    next >
Text File  |  2003-04-08  |  2KB  |  43 lines

  1. Article: 13800 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!news.columbia.edu!news-not-for-mail
  3. From: fdc@columbia.edu (Frank da Cruz)
  4. Newsgroups: comp.protocols.kermit.misc
  5. Subject: Re: redirect io to external cmd (like cu "~|cmd" and "~$cmd")
  6. Date: 28 Oct 2002 09:57:17 -0500
  7. Organization: Columbia University
  8. Lines: 26
  9. Message-ID: <apjj8d$pk3$1@watsol.cc.columbia.edu>
  10. References: <86c66124.0210280643.30d17ab6@posting.google.com>
  11. NNTP-Posting-Host: watsol.cc.columbia.edu
  12. X-Trace: newsmaster.cc.columbia.edu 1035817038 8390 128.59.39.139 (28 Oct 2002 14:57:18 GMT)
  13. X-Complaints-To: postmaster@columbia.edu
  14. NNTP-Posting-Date: 28 Oct 2002 14:57:18 GMT
  15. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:13800
  16.  
  17. In article <86c66124.0210280643.30d17ab6@posting.google.com>,
  18.  <pytcayrn@freemail.hu> wrote:
  19. : In C-kermit 7.0 (HP-UX), how can I redirect binary data coming from a
  20. : directly connected device on /dev/tty0p2 to an external application
  21. : like "od -tx1", so that decoded hexa numbers should appear on the
  22. : screen after I issue a "CONNECT" command?
  23. You can't make hex numbers appear on the screen but you can make them
  24. go into a session log file:
  25.  
  26.   set port /dev/tty0p2
  27.   set speed 57600  ; or whatever
  28.   set flow rts/cts ; or whatever
  29.   set session log binary
  30.   log session "|od -tx1 > session.log"
  31.  
  32. : And how can I do the reverse:
  33. : starting an external command whose output is dumped to the serial
  34. : line?
  35. redirect <command>
  36.  
  37. : These functions exist in "cu" ("~|cmd" and "~$cmd") but using them in
  38. : kermit would be more convenient.
  39.  
  40. - Frank
  41.